package com.zmn.oms.model.entity.work;

import com.zmn.common.constant.FicoConsts;
import com.zmn.oms.model.es.ZmnEsFieldType;
import com.zmn.oms.model.es.ZmnToEs;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 类描述：同步es 查询工单
 *
 * @author lujia
 * @date 2018/11/23 20:01
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class OrderWorkDiscountQuery {
    /**
     * 优惠分类 会员优惠
     *
     * @see FicoConsts#ORDER_IN_DISCOUNT_CATEG_ARTIFICIAL_OPERATOR
     */
    @ZmnToEs(map = "discountList.discountCateg", type = ZmnEsFieldType.Integer)
    private Integer discountCateg;

    /**
     * 优惠类型 折扣，立减
     *
     * @see com.zmn.oms.common.constant.OrderConsts#getDiscountTypeName
     */
    @ZmnToEs(map = "discountList.discountType", type = ZmnEsFieldType.Integer)
    private Integer discountType;
}
